package com.szrt.cll.test.school.service.impl;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;

import com.szrt.cll.test.core.base.BaseDao;
import com.szrt.cll.test.core.base.BaseServiceImpl;
import com.szrt.cll.test.dto.SelectionDTO;
import com.szrt.cll.test.school.dao.SchoolDao;
import com.szrt.cll.test.school.entity.SchoolEntity;
import com.szrt.cll.test.school.service.SchoolService;

@Controller
public class SchoolServiceImpl extends BaseServiceImpl<SchoolEntity> implements SchoolService {

	@Autowired
	private SchoolDao dao;

	@Override
	public BaseDao<SchoolEntity> getBaseDao() {
		
		return dao;
	}

	@Override
	public List<SelectionDTO> findAllSelectionDTO() {
		// TODO Auto-generated method stub
		return dao.findAllSelectionDTO();
	}

	@Override
	public List<SchoolEntity> findByName(Map<String, Object> pageMap) {
		// TODO Auto-generated method stub
		return dao.findByName(pageMap);
	}


	
}
